<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Yeffect-test-case</title>
        <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
    </head>
    <link rel="stylesheet" type="text/css" href="../../css/reset.css">
    <script src="../../script/libs/jquery-1.9.1.min.js"></script>

    <script>
        var res = ['event'];
        var html = [];
        var timestamp = Date.parse(new Date());
        for(s in res){
            html.push('<script type="text/javascript" src="../../script/componets/'+res[s]+'.js?v='+timestamp+'"><\/script>');
        }
        document.write(html.join(''));
    </script>
    <body>
        <button class="n b" type="button" id="start">event.start()</button>
        <button class="n b" type="button" id="move">event.move()</button>
        <button class="n b" type="button" id="end">event.end()</button>
        <script type="text/javascript">
            $(function(){
                /*手指按下/鼠标按下(按下)*/
                Yeffect.event.start('#start',function(){
                    alert('手指按下,鼠标按下')
                });
                /*手指滑动/鼠标移动（事件）*/
                Yeffect.event.move('#move',function(){
                    alert('手指滑动,鼠标移动')
                });
                Yeffect.event.end("#end",function(e){
                　　$(this).html("鼠标/手指松开时的位置为："+e.pageX+","+e.pageY);
                });
            })
        </script>
    </body>
</html>
